package com.srit.recipes.dao;

import com.srit.recipes.common.parent.ParentDao;
import com.srit.recipes.entity.CodeInfo;
import com.srit.recipes.entity.InventoryInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface InventoryDao extends ParentDao<InventoryInfo, Integer> {


    List<InventoryInfo> findAllByName(String name);

    Page<InventoryInfo> findAllByExpirationBefore(Date date, Pageable pageable);


    Page<InventoryInfo> findAllByExpirationBetween(Date start, Date end, Pageable pageable);

}
